package com.hndd.smartfactoryapp.activity;

import android.util.Log;
import android.view.View;

import com.hndd.smartfactoryapp.R;

import org.json.JSONObject;

public class MainActivity extends BaseActivity {
    private static final String TAG = "MainActivity";
    @Override
    public int setView() {
        return R.layout.activity_main;
    }

    @Override
    public void initView() {

    }

    @Override
    public void initData() {

    }

    public void test(View view) {
        startThread();
    }

    @Override
    protected void runOnNewThread() {
        JSONObject response = getResponse("http://192.168.137.1:8080/h1/goods/list");
        Log.d(TAG, "runOnNewThread: "+response.toString());
    }
}